package com.fjxd.planeTicket.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fjxd.feign.pojo.TicketStore;
import lombok.Data;

import java.util.List;

/**
 * @author csw
 */
@Data
@TableName(value = "tb_ticket")
public class Ticket {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer fId;
    private Integer pId;
    private String fName;
    private String pName;
    private String startTime;
    private String endTime;
    private String upCity;
    private String downCity;
    private String sailingTime;
    private String company;
    private String companyLogos;
    private String startDate;
    private double economyPrice;
    private double businessPrice;
    private double firstPrice;
    @TableField(exist = false)
    private List<TicketStore> ticketStores;
    @TableField(exist = false)
    private double discountPrice;
    @TableField(exist = false)
    private double discountClass;
    @TableField(exist = false)
    private String upAirportName;
    @TableField(exist = false)
    private String downAirportName;
}
